from tortoise.models import Model
from tortoise import fields

class Class(Model):
    id = fields.IntField(pk=True)
    name = fields.CharField(max_length=20)
    master = fields.CharField(max_length=20)


class Course(Model):
    id = fields.IntField(pk=True)
    week_day = fields.IntField(max_length=5)
    time = fields.IntField(max_length=5)
    name = fields.CharField(max_length=20)
    teacher = fields.CharField(max_length=20)
    place = fields.CharField(max_length=20)
